﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<brjostagjof.Models.PracticalInformation>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Breyta hagnýtum upplýsingum
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Breyta hagnýtum upplýsingum</h2>

    <% using (Html.BeginForm())
       {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>

        <div class="edit">
                <%= Html.TextBoxFor(model => model.InformationBase.headline) %>
          </div>
           
             <div class="editor-label">
                Efni
            </div>
             <div class="editor-field">
                <%: Html.TextAreaFor(model => model.InformationBase.context, new { @class = "ckeditor", rows = "10", cols = "40" })%>
                <%: Html.ValidationMessageFor(model => model.InformationBase.context) %>
            </div>
          
          <div class="edit">
                <%= Html.HiddenFor(model => model.InformationBase.ID) %>
          </div>

            <p>
                <input type="submit" value="Breyta" />
            </p>

             </fieldset>

              <% } %>

    <div>
        <%: Html.ActionLink("Hætta við", "HagnytarUpplysingar") %>
    </div>

</asp:Content>

